/**
 * Created by shudong.msd(风骐) on 2016/4/26.
 */
app.directive('detectTimeVal',function(){

    return function(scope,ele,attr){
        scope.$watch(function(){
            return ele.val();
        },function(value){
            if(attr.fqRole=='start'){
                scope.formData['startTime'] = value;
            }else{
                scope.formData['endTime'] = value;
            }
        });
    };
});